package auction.Re_Product.action;

import java.io.IOException;
import java.util.List;

import auction.Re_Product.dao.Re_ProductDao;
import auction.Re_Product.dto.SelectDTO;
import auction.Re_Product.dto.TestCodeDTO;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class AjaxTestResultAction extends ActionSupport{
	private String type;
	
	private Re_ProductDao dao;
	/*private List<TestCodeDTO> code;*/
	private List<SelectDTO> selectDTO;
	
	public AjaxTestResultAction() throws IOException{
		dao = Re_ProductDao.getinstance();
	}
	
	
	
	public String execute()throws Exception{
		/*selectDTO = dao.getTypeCodeList("subject");*/
		System.out.println("type : "+type);
		selectDTO = dao.getTypeCodeList(type);
		return SUCCESS;
	}
	
	
	



	

	public List<SelectDTO> getSelectDTO() {
		return selectDTO;
	}



	public void setSelectDTO(List<SelectDTO> selectDTO) {
		this.selectDTO = selectDTO;
	}



	public void setType(String type) {
		this.type = type;
	}



	
	
	
	
	
}
